package b.l.a;

import android.view.View;
import androidx.fragment.app.Fragment;
import b.f.g;
import b.i.k.o;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.WeakHashMap;

/* compiled from: FragmentTransition */
public class u {
    public static final int[] a = new int[]{0, 3, 0, 1, 5, 4, 7, 6, 9, 8, 10};
    public static final z b = new v();
    public static final z c;

    /* compiled from: FragmentTransition */
    public static class a {
        public Fragment a;
        public boolean b;
        public a c;
        public Fragment d;
        public boolean e;
        public a f;
    }

    static {
        z zVar;
        try {
            zVar = (z) Class.forName("b.r.a").getDeclaredConstructor(new Class[0]).newInstance(new Object[0]);
        } catch (Exception unused) {
            zVar = null;
        }
        c = zVar;
    }

    public static void a(ArrayList<View> arrayList, b.f.a<String, View> aVar, Collection<String> collection) {
        for (int i = aVar.c - 1; i >= 0; i--) {
            View view = (View) aVar.k(i);
            WeakHashMap weakHashMap = o.a;
            if (collection.contains(view.getTransitionName())) {
                arrayList.add(view);
            }
        }
    }

    /* JADX WARNING: Removed duplicated region for block: B:69:0x0099  */
    /* JADX WARNING: Removed duplicated region for block: B:91:0x00dc  */
    /* JADX WARNING: Removed duplicated region for block: B:69:0x0099  */
    /* JADX WARNING: Removed duplicated region for block: B:91:0x00dc  */
    /* JADX WARNING: Removed duplicated region for block: B:69:0x0099  */
    /* JADX WARNING: Removed duplicated region for block: B:91:0x00dc  */
    /* JADX WARNING: Removed duplicated region for block: B:69:0x0099  */
    /* JADX WARNING: Removed duplicated region for block: B:91:0x00dc  */
    /* JADX WARNING: Removed duplicated region for block: B:69:0x0099  */
    /* JADX WARNING: Removed duplicated region for block: B:91:0x00dc  */
    /* JADX WARNING: Removed duplicated region for block: B:69:0x0099  */
    /* JADX WARNING: Removed duplicated region for block: B:91:0x00dc  */
    /* JADX WARNING: Removed duplicated region for block: B:69:0x0099  */
    /* JADX WARNING: Removed duplicated region for block: B:91:0x00dc  */
    /* JADX WARNING: Removed duplicated region for block: B:69:0x0099  */
    /* JADX WARNING: Removed duplicated region for block: B:91:0x00dc  */
    /* JADX WARNING: Missing block: B:28:0x0038, code skipped:
            if (r6.k != false) goto L_0x008a;
     */
    /* JADX WARNING: Missing block: B:49:0x006b, code skipped:
            if (r6.N >= 0.0f) goto L_0x0076;
     */
    /* JADX WARNING: Missing block: B:53:0x0074, code skipped:
            if (r6.y == false) goto L_0x0076;
     */
    /* JADX WARNING: Missing block: B:54:0x0076, code skipped:
            r12 = 1;
     */
    /* JADX WARNING: Missing block: B:62:0x0088, code skipped:
            if (r6.y == false) goto L_0x008a;
     */
    /* JADX WARNING: Missing block: B:63:0x008a, code skipped:
            r12 = true;
     */
    public static void b(b.l.a.a r11, b.l.a.p.a r12, android.util.SparseArray<b.l.a.u.a> r13, boolean r14, boolean r15) {
        /*
        r6 = r12.b;
        if (r6 != 0) goto L_0x0005;
    L_0x0004:
        return;
    L_0x0005:
        r7 = r6.w;
        if (r7 != 0) goto L_0x000a;
    L_0x0009:
        return;
    L_0x000a:
        if (r14 == 0) goto L_0x0013;
    L_0x000c:
        r0 = a;
        r12 = r12.a;
        r12 = r0[r12];
        goto L_0x0015;
    L_0x0013:
        r12 = r12.a;
    L_0x0015:
        r0 = 1;
        r1 = 0;
        if (r12 == r0) goto L_0x007d;
    L_0x0019:
        r2 = 3;
        if (r12 == r2) goto L_0x0056;
    L_0x001c:
        r2 = 4;
        if (r12 == r2) goto L_0x003e;
    L_0x001f:
        r2 = 5;
        if (r12 == r2) goto L_0x002c;
    L_0x0022:
        r2 = 6;
        if (r12 == r2) goto L_0x0056;
    L_0x0025:
        r2 = 7;
        if (r12 == r2) goto L_0x007d;
    L_0x0028:
        r12 = 0;
        r2 = 0;
        goto L_0x008e;
    L_0x002c:
        if (r15 == 0) goto L_0x003b;
    L_0x002e:
        r12 = r6.M;
        if (r12 == 0) goto L_0x008c;
    L_0x0032:
        r12 = r6.y;
        if (r12 != 0) goto L_0x008c;
    L_0x0036:
        r12 = r6.k;
        if (r12 == 0) goto L_0x008c;
    L_0x003a:
        goto L_0x008a;
    L_0x003b:
        r12 = r6.y;
        goto L_0x008d;
    L_0x003e:
        if (r15 == 0) goto L_0x004d;
    L_0x0040:
        r12 = r6.M;
        if (r12 == 0) goto L_0x0078;
    L_0x0044:
        r12 = r6.k;
        if (r12 == 0) goto L_0x0078;
    L_0x0048:
        r12 = r6.y;
        if (r12 == 0) goto L_0x0078;
    L_0x004c:
        goto L_0x0076;
    L_0x004d:
        r12 = r6.k;
        if (r12 == 0) goto L_0x0078;
    L_0x0051:
        r12 = r6.y;
        if (r12 != 0) goto L_0x0078;
    L_0x0055:
        goto L_0x0076;
    L_0x0056:
        if (r15 == 0) goto L_0x006e;
    L_0x0058:
        r12 = r6.k;
        if (r12 != 0) goto L_0x0078;
    L_0x005c:
        r12 = r6.G;
        if (r12 == 0) goto L_0x0078;
    L_0x0060:
        r12 = r12.getVisibility();
        if (r12 != 0) goto L_0x0078;
    L_0x0066:
        r12 = r6.N;
        r2 = 0;
        r12 = (r12 > r2 ? 1 : (r12 == r2 ? 0 : -1));
        if (r12 < 0) goto L_0x0078;
    L_0x006d:
        goto L_0x0076;
    L_0x006e:
        r12 = r6.k;
        if (r12 == 0) goto L_0x0078;
    L_0x0072:
        r12 = r6.y;
        if (r12 != 0) goto L_0x0078;
    L_0x0076:
        r12 = 1;
        goto L_0x0079;
    L_0x0078:
        r12 = 0;
    L_0x0079:
        r8 = r12;
        r12 = 1;
        r2 = 0;
        goto L_0x0091;
    L_0x007d:
        if (r15 == 0) goto L_0x0082;
    L_0x007f:
        r12 = r6.L;
        goto L_0x008d;
    L_0x0082:
        r12 = r6.k;
        if (r12 != 0) goto L_0x008c;
    L_0x0086:
        r12 = r6.y;
        if (r12 != 0) goto L_0x008c;
    L_0x008a:
        r12 = 1;
        goto L_0x008d;
    L_0x008c:
        r12 = 0;
    L_0x008d:
        r2 = 1;
    L_0x008e:
        r1 = r12;
        r12 = 0;
        r8 = 0;
    L_0x0091:
        r3 = r13.get(r7);
        r3 = (b.l.a.u.a) r3;
        if (r1 == 0) goto L_0x00aa;
    L_0x0099:
        if (r3 != 0) goto L_0x00a4;
    L_0x009b:
        r1 = new b.l.a.u$a;
        r1.m588init();
        r13.put(r7, r1);
        r3 = r1;
    L_0x00a4:
        r3.a = r6;
        r3.b = r14;
        r3.c = r11;
    L_0x00aa:
        r9 = r3;
        r10 = 0;
        if (r15 != 0) goto L_0x00d2;
    L_0x00ae:
        if (r2 == 0) goto L_0x00d2;
    L_0x00b0:
        if (r9 == 0) goto L_0x00b8;
    L_0x00b2:
        r1 = r9.d;
        if (r1 != r6) goto L_0x00b8;
    L_0x00b6:
        r9.d = r10;
    L_0x00b8:
        r1 = r11.q;
        r2 = r6.a;
        if (r2 >= r0) goto L_0x00d2;
    L_0x00be:
        r2 = r1.o;
        if (r2 < r0) goto L_0x00d2;
    L_0x00c2:
        r0 = r11.p;
        if (r0 != 0) goto L_0x00d2;
    L_0x00c6:
        r1.d0(r6);
        r2 = 1;
        r3 = 0;
        r4 = 0;
        r5 = 0;
        r0 = r1;
        r1 = r6;
        r0.h0(r1, r2, r3, r4, r5);
    L_0x00d2:
        if (r8 == 0) goto L_0x00eb;
    L_0x00d4:
        if (r9 == 0) goto L_0x00da;
    L_0x00d6:
        r0 = r9.d;
        if (r0 != 0) goto L_0x00eb;
    L_0x00da:
        if (r9 != 0) goto L_0x00e5;
    L_0x00dc:
        r0 = new b.l.a.u$a;
        r0.m588init();
        r13.put(r7, r0);
        r9 = r0;
    L_0x00e5:
        r9.d = r6;
        r9.e = r14;
        r9.f = r11;
    L_0x00eb:
        if (r15 != 0) goto L_0x00f7;
    L_0x00ed:
        if (r12 == 0) goto L_0x00f7;
    L_0x00ef:
        if (r9 == 0) goto L_0x00f7;
    L_0x00f1:
        r11 = r9.a;
        if (r11 != r6) goto L_0x00f7;
    L_0x00f5:
        r9.a = r10;
    L_0x00f7:
        return;
        */
        throw new UnsupportedOperationException("Method not decompiled: b.l.a.u.b(b.l.a.a, b.l.a.p$a, android.util.SparseArray, boolean, boolean):void");
    }

    public static void c(Fragment fragment, Fragment fragment2, boolean z, b.f.a<String, View> aVar, boolean z2) {
        if (z) {
            fragment2.m();
        } else {
            fragment.m();
        }
    }

    public static boolean d(z zVar, List<Object> list) {
        int size = list.size();
        for (int i = 0; i < size; i++) {
            if (!zVar.e(list.get(i))) {
                return false;
            }
        }
        return true;
    }

    public static b.f.a<String, View> e(z zVar, b.f.a<String, String> aVar, Object obj, a aVar2) {
        Fragment fragment = aVar2.a;
        View view = fragment.G;
        if (aVar.isEmpty() || obj == null || view == null) {
            aVar.clear();
            return null;
        }
        Collection collection;
        b.f.a aVar3 = new b.f.a();
        zVar.i(aVar3, view);
        a aVar4 = aVar2.c;
        if (aVar2.b) {
            collection = aVar4.n;
        } else {
            fragment.m();
            collection = aVar4.o;
        }
        if (collection != null) {
            g.k(aVar3, collection);
            g.k(aVar3, aVar.values());
        }
        int i = aVar.c;
        while (true) {
            i--;
            if (i < 0) {
                return aVar3;
            }
            if (!aVar3.containsKey((String) aVar.k(i))) {
                aVar.i(i);
            }
        }
    }

    public static b.f.a<String, View> f(z zVar, b.f.a<String, String> aVar, Object obj, a aVar2) {
        if (aVar.isEmpty() || obj == null) {
            aVar.clear();
            return null;
        }
        Collection collection;
        Fragment fragment = aVar2.d;
        b.f.a aVar3 = new b.f.a();
        zVar.i(aVar3, fragment.b0());
        a aVar4 = aVar2.f;
        if (aVar2.e) {
            fragment.m();
            collection = aVar4.o;
        } else {
            collection = aVar4.n;
        }
        g.k(aVar3, collection);
        g.k(aVar, aVar3.keySet());
        return aVar3;
    }

    public static z g(Fragment fragment, Fragment fragment2) {
        Object v;
        ArrayList arrayList = new ArrayList();
        if (fragment != null) {
            fragment.n();
            Object t = fragment.t();
            if (t != null) {
                arrayList.add(t);
            }
            v = fragment.v();
            if (v != null) {
                arrayList.add(v);
            }
        }
        if (fragment2 != null) {
            fragment2.l();
            v = fragment2.r();
            if (v != null) {
                arrayList.add(v);
            }
            fragment2.u();
        }
        if (arrayList.isEmpty()) {
            return null;
        }
        z zVar = b;
        if (d(zVar, arrayList)) {
            return zVar;
        }
        zVar = c;
        if (zVar != null && d(zVar, arrayList)) {
            return zVar;
        }
        throw new IllegalArgumentException("Invalid Transition types");
    }

    public static ArrayList<View> h(z zVar, Object obj, Fragment fragment, ArrayList<View> arrayList, View view) {
        if (obj == null) {
            return null;
        }
        ArrayList<View> arrayList2 = new ArrayList();
        View view2 = fragment.G;
        if (view2 != null) {
            zVar.f(arrayList2, view2);
        }
        if (arrayList != null) {
            arrayList2.removeAll(arrayList);
        }
        if (arrayList2.isEmpty()) {
            return arrayList2;
        }
        arrayList2.add(view);
        zVar.b(obj, arrayList2);
        return arrayList2;
    }

    public static Object i(z zVar, Fragment fragment, boolean z) {
        Object obj = null;
        if (fragment == null) {
            return null;
        }
        if (z) {
            obj = fragment.r();
        } else {
            fragment.l();
        }
        return zVar.g(obj);
    }

    public static Object j(z zVar, Fragment fragment, boolean z) {
        Object obj = null;
        if (fragment == null) {
            return null;
        }
        if (z) {
            obj = fragment.t();
        } else {
            fragment.n();
        }
        return zVar.g(obj);
    }

    public static View k(b.f.a<String, View> aVar, a aVar2, Object obj, boolean z) {
        a aVar3 = aVar2.c;
        if (!(obj == null || aVar == null)) {
            ArrayList arrayList = aVar3.n;
            if (!(arrayList == null || arrayList.isEmpty())) {
                Object obj2;
                if (z) {
                    obj2 = (String) aVar3.n.get(0);
                } else {
                    obj2 = (String) aVar3.o.get(0);
                }
                return (View) aVar.get(obj2);
            }
        }
        return null;
    }

    public static Object l(z zVar, Fragment fragment, Fragment fragment2, boolean z) {
        Object v;
        if (z) {
            v = fragment2.v();
        } else {
            fragment.u();
            v = null;
        }
        return zVar.u(zVar.g(v));
    }

    public static void m(z zVar, Object obj, Object obj2, b.f.a<String, View> aVar, boolean z, a aVar2) {
        ArrayList arrayList = aVar2.n;
        if (arrayList != null && !arrayList.isEmpty()) {
            Object obj3;
            if (z) {
                obj3 = (String) aVar2.o.get(0);
            } else {
                obj3 = (String) aVar2.n.get(0);
            }
            View view = (View) aVar.get(obj3);
            zVar.r(obj, view);
            if (obj2 != null) {
                zVar.r(obj2, view);
            }
        }
    }

    public static void n(ArrayList<View> arrayList, int i) {
        if (arrayList != null) {
            for (int size = arrayList.size() - 1; size >= 0; size--) {
                ((View) arrayList.get(size)).setVisibility(i);
            }
        }
    }

    /* JADX WARNING: Removed duplicated region for block: B:87:0x0216 A:{SKIP} */
    /* JADX WARNING: Removed duplicated region for block: B:163:0x043b A:{SYNTHETIC} */
    /* JADX WARNING: Removed duplicated region for block: B:153:0x03f9  */
    public static void o(b.l.a.i r38, java.util.ArrayList<b.l.a.a> r39, java.util.ArrayList<java.lang.Boolean> r40, int r41, int r42, boolean r43) {
        /*
        r0 = r38;
        r1 = r39;
        r2 = r40;
        r3 = r42;
        r4 = r43;
        r5 = r0.o;
        r6 = 1;
        if (r5 >= r6) goto L_0x0010;
    L_0x000f:
        return;
    L_0x0010:
        r5 = new android.util.SparseArray;
        r5.<init>();
        r7 = r41;
    L_0x0017:
        r8 = 0;
        if (r7 >= r3) goto L_0x0068;
    L_0x001a:
        r9 = r1.get(r7);
        r9 = (b.l.a.a) r9;
        r10 = r2.get(r7);
        r10 = (java.lang.Boolean) r10;
        r10 = r10.booleanValue();
        if (r10 == 0) goto L_0x004e;
    L_0x002c:
        r8 = r9.q;
        r8 = r8.q;
        r8 = r8.e();
        if (r8 != 0) goto L_0x0037;
    L_0x0036:
        goto L_0x0065;
    L_0x0037:
        r8 = r9.a;
        r8 = r8.size();
        r8 = r8 - r6;
    L_0x003e:
        if (r8 < 0) goto L_0x0065;
    L_0x0040:
        r10 = r9.a;
        r10 = r10.get(r8);
        r10 = (b.l.a.p.a) r10;
        b(r9, r10, r5, r6, r4);
        r8 = r8 + -1;
        goto L_0x003e;
    L_0x004e:
        r10 = r9.a;
        r10 = r10.size();
        r11 = 0;
    L_0x0055:
        if (r11 >= r10) goto L_0x0065;
    L_0x0057:
        r12 = r9.a;
        r12 = r12.get(r11);
        r12 = (b.l.a.p.a) r12;
        b(r9, r12, r5, r8, r4);
        r11 = r11 + 1;
        goto L_0x0055;
    L_0x0065:
        r7 = r7 + 1;
        goto L_0x0017;
    L_0x0068:
        r7 = r5.size();
        if (r7 == 0) goto L_0x044f;
    L_0x006e:
        r7 = new android.view.View;
        r9 = r0.p;
        r9 = r9.b;
        r7.<init>(r9);
        r15 = r5.size();
        r14 = 0;
    L_0x007c:
        if (r14 >= r15) goto L_0x044f;
    L_0x007e:
        r9 = r5.keyAt(r14);
        r13 = new b.f.a;
        r13.m5038init();
        r10 = r3 + -1;
        r12 = r41;
    L_0x008b:
        if (r10 < r12) goto L_0x00f6;
    L_0x008d:
        r11 = r1.get(r10);
        r11 = (b.l.a.a) r11;
        r16 = r11.p(r9);
        if (r16 != 0) goto L_0x009a;
    L_0x0099:
        goto L_0x00eb;
    L_0x009a:
        r16 = r2.get(r10);
        r16 = (java.lang.Boolean) r16;
        r16 = r16.booleanValue();
        r6 = r11.n;
        if (r6 == 0) goto L_0x00eb;
    L_0x00a8:
        r6 = r6.size();
        if (r16 == 0) goto L_0x00b3;
    L_0x00ae:
        r8 = r11.n;
        r11 = r11.o;
        goto L_0x00bc;
    L_0x00b3:
        r8 = r11.n;
        r11 = r11.o;
        r37 = r11;
        r11 = r8;
        r8 = r37;
    L_0x00bc:
        r1 = 0;
    L_0x00bd:
        if (r1 >= r6) goto L_0x00eb;
    L_0x00bf:
        r16 = r11.get(r1);
        r2 = r16;
        r2 = (java.lang.String) r2;
        r16 = r8.get(r1);
        r3 = r16;
        r3 = (java.lang.String) r3;
        r16 = r13.remove(r3);
        r17 = r6;
        r6 = r16;
        r6 = (java.lang.String) r6;
        if (r6 == 0) goto L_0x00df;
    L_0x00db:
        r13.put(r2, r6);
        goto L_0x00e2;
    L_0x00df:
        r13.put(r2, r3);
    L_0x00e2:
        r1 = r1 + 1;
        r2 = r40;
        r3 = r42;
        r6 = r17;
        goto L_0x00bd;
    L_0x00eb:
        r10 = r10 + -1;
        r1 = r39;
        r2 = r40;
        r3 = r42;
        r6 = 1;
        r8 = 0;
        goto L_0x008b;
    L_0x00f6:
        r1 = r5.valueAt(r14);
        r1 = (b.l.a.u.a) r1;
        if (r4 == 0) goto L_0x02dd;
    L_0x00fe:
        r3 = r0.q;
        r3 = r3.e();
        if (r3 == 0) goto L_0x010f;
    L_0x0106:
        r3 = r0.q;
        r3 = r3.b(r9);
        r3 = (android.view.ViewGroup) r3;
        goto L_0x0110;
    L_0x010f:
        r3 = 0;
    L_0x0110:
        if (r3 != 0) goto L_0x0113;
    L_0x0112:
        goto L_0x011d;
    L_0x0113:
        r6 = r1.a;
        r8 = r1.d;
        r9 = g(r8, r6);
        if (r9 != 0) goto L_0x0126;
    L_0x011d:
        r31 = r5;
        r32 = r14;
        r33 = r15;
    L_0x0123:
        r0 = 0;
        goto L_0x02da;
    L_0x0126:
        r10 = r1.b;
        r11 = r1.e;
        r2 = new java.util.ArrayList;
        r2.<init>();
        r4 = new java.util.ArrayList;
        r4.<init>();
        r10 = i(r9, r6, r10);
        r11 = j(r9, r8, r11);
        r31 = r5;
        r5 = r1.a;
        r12 = r1.d;
        if (r5 == 0) goto L_0x0151;
    L_0x0144:
        r32 = r14;
        r14 = r5.b0();
        r33 = r15;
        r15 = 0;
        r14.setVisibility(r15);
        goto L_0x0155;
    L_0x0151:
        r32 = r14;
        r33 = r15;
    L_0x0155:
        if (r5 == 0) goto L_0x01f1;
    L_0x0157:
        if (r12 != 0) goto L_0x015b;
    L_0x0159:
        goto L_0x01f1;
    L_0x015b:
        r14 = r1.b;
        r15 = r13.isEmpty();
        if (r15 == 0) goto L_0x0165;
    L_0x0163:
        r15 = 0;
        goto L_0x0169;
    L_0x0165:
        r15 = l(r9, r5, r12, r14);
    L_0x0169:
        r0 = f(r9, r13, r15, r1);
        r34 = r6;
        r6 = e(r9, r13, r15, r1);
        r16 = r13.isEmpty();
        if (r16 == 0) goto L_0x0185;
    L_0x0179:
        if (r0 == 0) goto L_0x017e;
    L_0x017b:
        r0.clear();
    L_0x017e:
        if (r6 == 0) goto L_0x0183;
    L_0x0180:
        r6.clear();
    L_0x0183:
        r15 = 0;
        goto L_0x0197;
    L_0x0185:
        r16 = r15;
        r15 = r13.keySet();
        a(r4, r0, r15);
        r15 = r13.values();
        a(r2, r6, r15);
        r15 = r16;
    L_0x0197:
        if (r10 != 0) goto L_0x01a0;
    L_0x0199:
        if (r11 != 0) goto L_0x01a0;
    L_0x019b:
        if (r15 != 0) goto L_0x01a0;
    L_0x019d:
        r36 = r2;
        goto L_0x01f5;
    L_0x01a0:
        r35 = r13;
        r13 = 1;
        c(r5, r12, r14, r0, r13);
        if (r15 == 0) goto L_0x01d6;
    L_0x01a8:
        r2.add(r7);
        r9.s(r15, r7, r4);
        r13 = r1.e;
        r36 = r2;
        r2 = r1.f;
        r16 = r9;
        r17 = r15;
        r18 = r11;
        r19 = r0;
        r20 = r13;
        r21 = r2;
        m(r16, r17, r18, r19, r20, r21);
        r0 = new android.graphics.Rect;
        r0.<init>();
        r1 = k(r6, r1, r10, r14);
        if (r1 == 0) goto L_0x01d1;
    L_0x01ce:
        r9.q(r10, r0);
    L_0x01d1:
        r29 = r0;
        r27 = r1;
        goto L_0x01dc;
    L_0x01d6:
        r36 = r2;
        r27 = 0;
        r29 = 0;
    L_0x01dc:
        r0 = new b.l.a.s;
        r22 = r0;
        r23 = r5;
        r24 = r12;
        r25 = r14;
        r26 = r6;
        r28 = r9;
        r22.m586init(r23, r24, r25, r26, r27, r28, r29);
        b.i.k.l.a(r3, r0);
        goto L_0x01f8;
    L_0x01f1:
        r36 = r2;
        r34 = r6;
    L_0x01f5:
        r35 = r13;
        r15 = 0;
    L_0x01f8:
        if (r10 != 0) goto L_0x0200;
    L_0x01fa:
        if (r15 != 0) goto L_0x0200;
    L_0x01fc:
        if (r11 != 0) goto L_0x0200;
    L_0x01fe:
        goto L_0x0123;
    L_0x0200:
        r0 = h(r9, r11, r8, r4, r7);
        r1 = r34;
        r2 = r36;
        r1 = h(r9, r10, r1, r2, r7);
        r5 = 4;
        n(r1, r5);
        r5 = r9.l(r11, r10, r15);
        if (r5 == 0) goto L_0x0123;
    L_0x0216:
        if (r8 == 0) goto L_0x0239;
    L_0x0218:
        if (r11 == 0) goto L_0x0239;
    L_0x021a:
        r6 = r8.k;
        if (r6 == 0) goto L_0x0239;
    L_0x021e:
        r6 = r8.y;
        if (r6 == 0) goto L_0x0239;
    L_0x0222:
        r6 = r8.M;
        if (r6 == 0) goto L_0x0239;
    L_0x0226:
        r6 = 1;
        r8.f0(r6);
        r6 = r8.G;
        r9.o(r11, r6, r0);
        r6 = r8.F;
        r8 = new b.l.a.q;
        r8.m584init(r0);
        b.i.k.l.a(r6, r8);
    L_0x0239:
        r6 = new java.util.ArrayList;
        r6.<init>();
        r8 = r2.size();
        r12 = 0;
    L_0x0243:
        if (r12 >= r8) goto L_0x025b;
    L_0x0245:
        r13 = r2.get(r12);
        r13 = (android.view.View) r13;
        r14 = b.i.k.o.a;
        r14 = r13.getTransitionName();
        r6.add(r14);
        r14 = 0;
        r13.setTransitionName(r14);
        r12 = r12 + 1;
        goto L_0x0243;
    L_0x025b:
        r22 = r9;
        r23 = r5;
        r24 = r10;
        r25 = r1;
        r26 = r11;
        r27 = r0;
        r28 = r15;
        r29 = r2;
        r22.p(r23, r24, r25, r26, r27, r28, r29);
        r9.c(r3, r5);
        r0 = r2.size();
        r5 = new java.util.ArrayList;
        r5.<init>();
        r8 = 0;
    L_0x027b:
        if (r8 >= r0) goto L_0x02bd;
    L_0x027d:
        r10 = r4.get(r8);
        r10 = (android.view.View) r10;
        r11 = b.i.k.o.a;
        r11 = r10.getTransitionName();
        r5.add(r11);
        if (r11 != 0) goto L_0x0291;
    L_0x028e:
        r13 = r35;
        goto L_0x02b8;
    L_0x0291:
        r14 = 0;
        r10.setTransitionName(r14);
        r13 = r35;
        r10 = r13.getOrDefault(r11, r14);
        r10 = (java.lang.String) r10;
        r12 = 0;
    L_0x029e:
        if (r12 >= r0) goto L_0x02b8;
    L_0x02a0:
        r14 = r6.get(r12);
        r14 = r10.equals(r14);
        if (r14 == 0) goto L_0x02b4;
    L_0x02aa:
        r10 = r2.get(r12);
        r10 = (android.view.View) r10;
        r10.setTransitionName(r11);
        goto L_0x02b8;
    L_0x02b4:
        r12 = r12 + 1;
        r14 = 0;
        goto L_0x029e;
    L_0x02b8:
        r8 = r8 + 1;
        r35 = r13;
        goto L_0x027b;
    L_0x02bd:
        r8 = new b.l.a.w;
        r22 = r8;
        r23 = r9;
        r24 = r0;
        r25 = r2;
        r26 = r6;
        r27 = r4;
        r28 = r5;
        r22.m594init(r23, r24, r25, r26, r27, r28);
        b.i.k.l.a(r3, r8);
        r0 = 0;
        n(r1, r0);
        r9.t(r15, r4, r2);
    L_0x02da:
        r2 = r38;
        goto L_0x0306;
    L_0x02dd:
        r2 = r0;
        r31 = r5;
        r32 = r14;
        r33 = r15;
        r0 = 0;
        r3 = r2.q;
        r3 = r3.e();
        if (r3 == 0) goto L_0x02f8;
    L_0x02ed:
        r3 = r2.q;
        r3 = r3.b(r9);
        r14 = r3;
        r14 = (android.view.ViewGroup) r14;
        r3 = r14;
        goto L_0x02f9;
    L_0x02f8:
        r3 = 0;
    L_0x02f9:
        if (r3 != 0) goto L_0x02fc;
    L_0x02fb:
        goto L_0x0306;
    L_0x02fc:
        r4 = r1.a;
        r5 = r1.d;
        r6 = g(r5, r4);
        if (r6 != 0) goto L_0x030c;
    L_0x0306:
        r1 = r32;
        r29 = r33;
        goto L_0x043b;
    L_0x030c:
        r8 = r1.b;
        r9 = r1.e;
        r8 = i(r6, r4, r8);
        r12 = j(r6, r5, r9);
        r11 = new java.util.ArrayList;
        r11.<init>();
        r10 = new java.util.ArrayList;
        r10.<init>();
        r9 = r1.a;
        r15 = r1.d;
        if (r9 == 0) goto L_0x03c4;
    L_0x0328:
        if (r15 != 0) goto L_0x032c;
    L_0x032a:
        goto L_0x03c4;
    L_0x032c:
        r14 = r1.b;
        r16 = r13.isEmpty();
        if (r16 == 0) goto L_0x0336;
    L_0x0334:
        r0 = 0;
        goto L_0x033c;
    L_0x0336:
        r16 = l(r6, r9, r15, r14);
        r0 = r16;
    L_0x033c:
        r2 = f(r6, r13, r0, r1);
        r16 = r13.isEmpty();
        if (r16 == 0) goto L_0x0348;
    L_0x0346:
        r0 = 0;
        goto L_0x0353;
    L_0x0348:
        r16 = r0;
        r0 = r2.values();
        r11.addAll(r0);
        r0 = r16;
    L_0x0353:
        if (r8 != 0) goto L_0x035b;
    L_0x0355:
        if (r12 != 0) goto L_0x035b;
    L_0x0357:
        if (r0 != 0) goto L_0x035b;
    L_0x0359:
        goto L_0x03c4;
    L_0x035b:
        r22 = r4;
        r4 = 1;
        c(r9, r15, r14, r2, r4);
        if (r0 == 0) goto L_0x038a;
    L_0x0363:
        r4 = new android.graphics.Rect;
        r4.<init>();
        r6.s(r0, r7, r11);
        r20 = r9;
        r9 = r1.e;
        r21 = r10;
        r10 = r1.f;
        r23 = r14;
        r14 = r6;
        r24 = r15;
        r15 = r0;
        r16 = r12;
        r17 = r2;
        r18 = r9;
        r19 = r10;
        m(r14, r15, r16, r17, r18, r19);
        if (r8 == 0) goto L_0x0393;
    L_0x0386:
        r6.q(r8, r4);
        goto L_0x0393;
    L_0x038a:
        r20 = r9;
        r21 = r10;
        r23 = r14;
        r24 = r15;
        r4 = 0;
    L_0x0393:
        r2 = new b.l.a.t;
        r16 = r20;
        r9 = r2;
        r15 = r21;
        r10 = r6;
        r14 = r11;
        r11 = r13;
        r25 = r5;
        r5 = r12;
        r12 = r0;
        r26 = r0;
        r0 = r13;
        r13 = r1;
        r27 = r14;
        r1 = r32;
        r28 = 0;
        r14 = r15;
        r30 = r15;
        r29 = r33;
        r15 = r7;
        r17 = r24;
        r18 = r23;
        r19 = r27;
        r20 = r8;
        r21 = r4;
        r9.m587init(r10, r11, r12, r13, r14, r15, r16, r17, r18, r19, r20, r21);
        b.i.k.l.a(r3, r2);
        r2 = r26;
        goto L_0x03d6;
    L_0x03c4:
        r22 = r4;
        r25 = r5;
        r30 = r10;
        r27 = r11;
        r5 = r12;
        r0 = r13;
        r1 = r32;
        r29 = r33;
        r28 = 0;
        r2 = r28;
    L_0x03d6:
        if (r8 != 0) goto L_0x03de;
    L_0x03d8:
        if (r2 != 0) goto L_0x03de;
    L_0x03da:
        if (r5 != 0) goto L_0x03de;
    L_0x03dc:
        goto L_0x043b;
    L_0x03de:
        r4 = r25;
        r9 = r27;
        r4 = h(r6, r5, r4, r9, r7);
        if (r4 == 0) goto L_0x03ee;
    L_0x03e8:
        r9 = r4.isEmpty();
        if (r9 == 0) goto L_0x03f0;
    L_0x03ee:
        r5 = r28;
    L_0x03f0:
        r6.a(r8, r7);
        r13 = r6.l(r5, r8, r2);
        if (r13 == 0) goto L_0x043b;
    L_0x03f9:
        r23 = new java.util.ArrayList;
        r23.<init>();
        r14 = r6;
        r15 = r13;
        r16 = r8;
        r17 = r23;
        r18 = r5;
        r19 = r4;
        r20 = r2;
        r21 = r30;
        r14.p(r15, r16, r17, r18, r19, r20, r21);
        r2 = new b.l.a.r;
        r9 = r2;
        r10 = r8;
        r11 = r6;
        r12 = r7;
        r8 = r13;
        r13 = r22;
        r14 = r30;
        r15 = r23;
        r16 = r4;
        r17 = r5;
        r9.m585init(r10, r11, r12, r13, r14, r15, r16, r17);
        b.i.k.l.a(r3, r2);
        r2 = new b.l.a.x;
        r4 = r30;
        r2.m595init(r6, r4, r0);
        b.i.k.l.a(r3, r2);
        r6.c(r3, r8);
        r2 = new b.l.a.y;
        r2.m596init(r6, r4, r0);
        b.i.k.l.a(r3, r2);
    L_0x043b:
        r14 = r1 + 1;
        r0 = r38;
        r1 = r39;
        r2 = r40;
        r3 = r42;
        r4 = r43;
        r15 = r29;
        r5 = r31;
        r6 = 1;
        r8 = 0;
        goto L_0x007c;
    L_0x044f:
        return;
        */
        throw new UnsupportedOperationException("Method not decompiled: b.l.a.u.o(b.l.a.i, java.util.ArrayList, java.util.ArrayList, int, int, boolean):void");
    }
}
